<div style="float:right;height:30px">
<input onclick="window.location='<?php echo $admin_base_url;?>financialyear/add/<?php echo $cur_page;?>';"  type="button" class="sbtbutton" value="Add financialyear" />
</div>
<?php
$arrMonth  = array(1=>"Jan",2=>"Feb",3=>"Mar",4=>"Apr",5=>"May",6=>"Jun",7=>"Jul",8=>"Aug",9=>"Sep",10=>"Oct",11=>"Nov",12=>"Dec");
?>
<!-----------------filter form ----------------------------------->

<table id="tbllist">
<tbody>
<tr>
<th class="tbslno">Sl.No</th>
<th class="tbname">Financial year</th>
<th class="tbaction">Action</th>
</tr>
<?php 
if(!empty($financialyear)) {
	foreach($financialyear as $key => $record) {
		$style = (++$key%2) ? 'alt1' : 'alt'; 
?>	
	<tr class="<?php echo $style;?>">
		<td><?= ($cur_page + $key);?></td>
		<td><?php echo $record['year1']." ".$arrMonth[$record['month1']]."-".$record['year2']." ".$arrMonth[$record['month2']]; if( $record['flag']==1) echo "<img src='".$admin_image_path."/D.png' height='30' width='30'>"; ?> </td>
		<td>
		<a href="<?php echo $admin_base_url;?>financialyear/edit/<?php echo $record['id'];?>/<?php echo $cur_page;?>"><img border="0" src="<?php echo $admin_image_path;?>edit1.png" alt=""/></a>
		<a href="<?php echo $admin_base_url;?>financialyear/delete/<?php echo $record['id'];?>/<?php echo $cur_page;?>" onclick="return confirm('Do you want to delete this ?');"><img border="0" src="<?php echo $admin_image_path;?>delete1.png" alt="" title="Delete"/></a>
         <a href="<?php echo $admin_base_url;?>financialyear/set_current/<?php echo $record['id'];?>/<?php echo $cur_page;?>" ><img border="0" src="<?php echo $admin_image_path;?>default.png" alt="" title="default" width="16" height="16"/></a>
		</td>
	</tr>
<?php 
	}
} else {
?>
<tr><td colspan="6">No Financial years available</td></tr>
<?php }?>
</tbody>
</table>
<div class="spacer10 rightText">
<?php 	echo $this->pagination->create_links();?>
</div>